import service from '@/utils/service';
class Home {
    reqList() {
        return service.GET(`https://m.you.163.com/item/cateList.json?__timestamp=${new Date().getTime()}`);
    }
    reqGoods(categoryId: number) {
        return service.GET(
            `https://m.you.163.com/item/cateList.json?__timestamp=${new Date().getTime()}&categoryId=${categoryId}`,
        );
    }
    reqGoodList(categoryId: number) {
        return service.GET(
            `https://m.you.163.com/item/list.json?__timestamp=${new Date().getTime()}&categoryId=${categoryId}`,
        );
    }
}
export default new Home();
